<h3>
  Welcome to Sideffect!
</h3>
<table width="100%">
  <tr>
    <td width="50%" align="center">
      <h3>
      Top <strong><%= @count %></strong> Side Effects from <i><%=@num_ratings%></i> Patients' Ratings
      </h3>
    </td>
    <td width="50%" align="center">
      <h3>
      Top <strong><%= @count %></strong> Drugs from <i><%=@num_drugs%></i> Drugs
      </h3>
    </td>
  </tr>
  <tr>
    <td align="center">
      <div id="tabledescription1">
      </div>
      <div id="coolmenu1">
        <% @top_sideffects.each do |sf| %>
          <a  onMouseover="showtext('Count: <strong><%=sf.cnt%></strong>','tabledescription1')" onMouseout="hidetext('tabledescription1')"><%= h(sf.name)%></a>
        <% end %>
      </div>
    </td>
    <td align="center">
	    <div id="tabledescription2">
	    </div>
	    <div id="coolmenu2">
        <% @top_drugs.each do |d| %>
          <%= link_to(h(d.name), {:controller => "drug", :action => "show", :id => d.id}, {:onMouseover => "showtext('Count: <strong>#{d.cnt}</strong>','tabledescription2')", :onMouseout => "hidetext('tabledescription2')"})%>
        <% end %>	  
	    </div>
    </td>
  </tr>
</table>

